import scrapy
from spidertools.common_pipeline.base_item import BaseItem


class SuZhouZhengFuCaiGouWangItem(BaseItem):
    '''
    江苏省苏州政府采购网item定义
    '''
    html = scrapy.Field()  # 网页html代码
    belong_to = scrapy.Field()  # 所属机构
    project_area = scrapy.Field()  # 原始地址
    construction_type = scrapy.Field()  # 工程类型
    source_type = scrapy.Field()  # 工程源分类
    announcement_type = scrapy.Field()  # 公告类型


class SuZhouGongGongZiYuanJiaoYiPingTaiItem(BaseItem):
    """
    苏州公共资源交易平台Item定义 :
        BaseItem中定义的变量：
        origin_url = scrapy.Field()  # 原始地址
        create_time = scrapy.Field()  # 创建时间
        update_time = scrapy.Field()  # 跟新时间
        announcement_title = scrapy.Field()  # 公告标题
        release_time = scrapy.Field()  # 公告发布时间
        is_parsed = scrapy.Field()  # 是否已经提取过信息
        source_type = scrapy.Field()  # 属于哪个网站的信息
    """
    project_index = scrapy.Field()  # 序号
    project_area = scrapy.Field()  # 所在区域
    construction_type = scrapy.Field()  # 交易分类
    project_categorynum = scrapy.Field()  # 预留
    html = scrapy.Field()  # 详情页html源码
